Optimal. Leaf size=24 \[ x (b B-a C)+\frac{b C \tanh ^{-1}(\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0232022, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 48, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.042, Rules used = {24, 3770} \[ x (b B-a C)+\frac{b C \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 24
Rule 3770
Rubi steps
\begin{align*} \int \frac{a b B-a^2 C+b^2 B \sec (c+d x)+b^2 C \sec ^2(c+d x)}{a+b \sec (c+d x)} \, dx &=\frac{\int \left (b^2 (b B-a C)+b^3 C \sec (c+d x)\right ) \, dx}{b^2}\\ &=(b B-a C) x+(b C) \int \sec (c+d x) \, dx\\ &=(b B-a C) x+\frac{b C \tanh ^{-1}(\sin (c+d x))}{d}\\ \end{align*}
Mathematica [A] time = 0.0110044, size = 23, normalized size = 0.96 \[ -a C x+b B x+\frac{b C \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 46, normalized size = 1.9 \begin{align*} Bbx-aCx+{\frac{Bbc}{d}}+{\frac{Cb\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}}-{\frac{Cac}{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.49816, size = 115, normalized size = 4.79 \begin{align*} -\frac{2 \,{\left (C a - B b\right )} d x - C b \log \left (\sin \left (d x + c\right ) + 1\right ) + C b \log \left (-\sin \left (d x + c\right ) + 1\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.51186, size = 75, normalized size = 3.12 \begin{align*} \begin{cases} - \frac{- B b \left (c + d x\right ) + C a \left (c + d x\right ) - C b \log{\left (\tan{\left (c + d x \right )} + \sec{\left (c + d x \right )} \right )}}{d} & \text{for}\: d \neq 0 \\\frac{x \left (B a b + B b^{2} \sec{\left (c \right )} - C a^{2} + C b^{2} \sec ^{2}{\left (c \right )}\right )}{a + b \sec{\left (c \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.25493, size = 72, normalized size = 3. \begin{align*} \frac{C b \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right ) - C b \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right ) -{\left (C a - B b\right )}{\left (d x + c\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]